package com.smh.service;

import com.smh.common.CommonResult;
import com.smh.entity.User;

import java.util.ArrayList;

public interface UserService {
    CommonResult<User> add(User user);

    CommonResult<User> edit(User user);

    CommonResult<ArrayList<User>> list(String userName, String realName);

    CommonResult<ArrayList<User>> listByPage(String userName, String realName, Integer page, Integer size);

    CommonResult<User> del(Integer id);

    User getUserById(Integer id);

    CommonResult<String> queryByUsernameAndPwd(User user);

    CommonResult<ArrayList<User>> queryAllByPage(Integer page, Integer size);
}
